//
// Created by rengen.gong on 2021/12/8.
//

#ifndef LEARN1_PERSON_H
#define LEARN1_PERSON_H

#include<iostream>
#include<fstream>
//向量是一个能够存放任意类型的动态数组
#include<vector>
#include<cstring>
using namespace std;
class Person{
private:
    char name[20];
    char id[18];
    int age;
    char addr[20];
public:
    Person(){}
    Person(char *n,char *pid,int Age,char* Addr){
        strcpy(name,n);
        strcpy(id,pid);
        age=Age;
        strcpy(addr,Addr);
    }
    void display(){
        cout<<name<<"\t"<<id<<"\t"<<age<<"\t"<<addr<<endl;
    }
};

#endif //LEARN1_PERSON_H
